﻿@model XRM.Security.WebUI.Models.UserRegister.RevokeInfoSystemModel
@{
    ViewBag.Title = "Запрет доступа";
    Layout = "~/Views/Shared/_LayoutDialog.cshtml";
}

<div class="modal-body" style="height:170px;padding-left:20px;overflow-y:auto;">
    @using ( Html.BeginForm( "RevokeInfoSystemDialog", "UserRegister", FormMethod.Post, new { id = "dlgDeleteUserSkziDialogForm", @class = "form-horizontal form-horizontal-2" } ) )
    {      
        @Html.AntiForgeryToken()
        @Html.HiddenFor(m => m.Id)
        const string inputCss = "form-control";
        const string divCss = "col-sm-8";
        
        <div class="form-group">
            @Html.LabelFor(m => m.RevokeDate, new { @class = "control-label required" })
            <div class="@divCss">
                @Html.EditorFor(m => m.RevokeDate, new { disabled = true })
            </div>
        </div>
        
        <div class="form-group">
            @Html.LabelFor(m => m.RevokeReason, new { @class = "control-label required" })
            <div class="@divCss">
                @Html.TextAreaFor(m => m.RevokeReason, new { @class = @inputCss })
                @Html.ValidationMessageFor(m => m.RevokeReason)
            </div>
        </div>
    }    
</div>
<div class="modal-footer">
    <div>
        <button type="submit" class="btn btn-primary submitBtn">Сохранить</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">Отмена</button>
    </div>
</div>